package com.project.xsf.service;

import com.project.xsf.entity.MDesignProcedureDetails;

import java.util.List;

public interface MDesignProcedureDetailsService {
    int insertSelective(MDesignProcedureDetails record);

    List<MDesignProcedureDetails> queryMDesignProcedureDetailsByPId(Integer pId);

    MDesignProcedureDetails selectByPrimaryKey(Integer id);
    //点击设计时：重新设计时将删除该工序对应的物料信息，并更新物料的可用数量
    MDesignProcedureDetails queryAndUpdateMDesignProcedureDetailsById(Integer id,String mDesignProcedurePId,String productId);

    int updateByPrimaryKeySelective(MDesignProcedureDetails record);

    List<MDesignProcedureDetails> queryMDesignProcedureDetailsByProductId(String productId);
}
